Skip to main content

API Sequence Flow

πŸ“¦πŸ”€ Model 1 β€” Redirect​

API NameParameter / URLDescriptionReference
GetBrokerListhttp://<domain>/vasprodmgmt/odinConnectorBrokerListDisplays broker at publisher endBrokerList
Login & Execute Basketβ€’ http://<domain>/landing/redirect with nRequestType=1
β€’ http://<SERVERIP/DOMAIN>/landing/redirect?sAppToken=[Provided BySIPL]&sProductCode=P001&sTpUserId=XXXXX&sTwoWayToken=[Generated At PublisherEnd]&nRequestType=1&oEchoBackObject=[Return in CallBack Response]&sPartnerId=[Received inBrokerList Api Call]
β€’ Display Broker Aero Page;
β€’ Need to implement TwoWayAuth and getBasketDetails URL at Publisher end
Vas Connector, Order Details, TwoWayAuth
Login Resulthttp://<PublisherDomain>?sStatusCode=<Code>&sStatusMessage=<Msg>&oEcoBackObject=<Obj>Publisher will provide webhook URLThirdParty CallBack
Online Order/Trade ResponseWritten on Publisher WebhookPublisher provides Webhook URLOmexExtender
Order Synchttp://<domain>/omexorderandtraderesponse/syncSync data if not received on webhookSyncOrderTrades

πŸ“‘ Model 2 β€” Smart Session​

API NameParameter / URLDescriptionReference
GetBrokerListhttp://<domain>/vasprodmgmt/odinConnectorBrokerListDisplays broker at publisher endBrokerList
Loginβ€’ http://<domain>/landing/redirect with nRequestType=2
β€’ http://<SERVERIP/DOMAIN>/landing/redirect?sAppToken=[Provided By SIPL]&sProductCode=P001&sTpUserId=XXXXX&sTwoWayToken=[Generated At Publisher End]&nRequestType=2&oEchoBackObject=[Return in CallBack Response]&sPartnerId=[Received in BrokerList Api Call]
β€’ Display Broker Aero Page
β€’ Need to implementTwoWayAuth and getBasketDetails URL at Publisher End
Vas Connector, TwoWayAuth
Login Resulthttp://< Publisher DOMAIN URL>/callback?sStatusCode=<Code>&sStatusMessage=<Message>&sTradingUserId=<TradingUserId>&sVasUserId=<sVasUserId>&sName=<UserName>&sEmail=<UserEmail>&sSession=<Token>&sRestSession=<Token>Implement at publisher sideThirdParty CallBack
Order Placementhttp://<SERVERIP/DOMAIN>/landing/redirect?sAppToken=xx-xx- xx&sProductCode=p001&sTwoWayToken=XXX&nRequestType=3&sSession=ABC123β€’ Pass session received in login response
β€’ Need to implement TwoWayAuth and getBasketDetails URL at Publisher End
Order Details, TwoWayAuth
Order Placement Resulthttp://< Publisher DOMAIN URL>/callback?sStatusCode=<Code>&sStatusMessage=<Message>
Online Order/Trade ResponseWritten on Publisher WebhookPublisher provides Webhook URLOmexExtender
Order Synchttp://<domain>/omexorderandtraderesponse/syncSync data if not received on webhookSyncOrderTrades
Get Balance (Model 4 only)http://<domain>/loginservice/apiKeysGet ApiKey and Endpoint of REST APIGetAPIKeys

πŸŒβš™οΈ Model 3 β€” Fully API-Based​

API NameParameter / URLDescriptionReference
GetBrokerListhttp://<domain>/vasprodmgmt/odinConnectorBrokerListβ€’ Displays Broker at Publisher End
β€’ Need to implement TwoWayAuth URL at Publisher End
BrokerList
Get Endpoint and ApiKeyhttp://<domain>/loginservice/apiKeysβ€’ To get ApiKey and Endpoint of Rest Api
β€’ Use Interactive Session Only
GetAPIKeys
Login, Order Placement, Order Book, Trade Book, Net Position and othersRefer ODIN REST APIDifferent from ODIN Connector documentODIN APIs

🧩⚑Model 4 β€” Hybrid​

API NameParameter / URLDescriptionReference
GetBrokerListhttp://<domain>/vasprodmgmt/odinConnectorBrokerListDisplays broker at publisher endBrokerList
Loginβ€’ http://<domain>/landing/redirect
β€’ http://<SERVER IP/DOMAIN>/landing/redirect?sAppToken=[Provided By SIPL]&sProductCode=P001&sTpUserId=XXXXX&sTwoWayToken=[Generated At Publisher End]&nRequestType=2&oEchoBackObject=[Return in CallBack Response]&sPartnerId=[Received in BrokerList Api Call]
β€’ Displays Broker Aero Page End
β€’ Need to implement TwoWayAuth and getBasketDetails URL at Publisher End
Vas Connector, TwoWayAuth
Login Result (Success/Failure)http://<PublisherDomain>/callback?...&sSession=<Token>&sRestSession=<Token>Implement at publisher sideThirdParty CallBack
Get Endpoint and ApiKeyhttp://<domain>/loginservice/apiKeysβ€’ To get ApiKey and Endpoint of Rest Api
β€’ Use interactive session only
GetAPIKeys
Order Placement, Order Book, etc.Refer ODIN REST API β€” use sRestSession from login responseDifferent from ODIN Connector documentODIN APIs
Online Order/Trade ResponseWritten on Publisher WebhookPublisher provides Webhook URLOmexExtender
Order Synchttp://<domain>/omexorderandtraderesponse/syncSync data if not received on webhookSyncOrderTrades